package com.example.teaching_server.repository;

import com.example.teaching_server.entity.ResourceType;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 资源类型数据访问层
 */
@Repository
public interface ResourceTypeRepository extends JpaRepository<ResourceType, String> {

    /**
     * 查询所有资源类型（按代码排序）
     */
    List<ResourceType> findAllByOrderByCodeAsc();
}
